<template>
  <div>
    <h1>父组件</h1>
    <p>来自子组件的数据: {{ childData }}</p>
    <div>------------</div>
    <ChildComponent v-model:kkx="childData" />
    <!-- <ChildComponent :modelValue="childData" @update:modelValue=" value=>(childData=value)" /> -->
  </div>
</template>

<script setup>
import { ref } from "vue";
import ChildComponent from "./index.vue";

const childData = ref("刘皓峥");
用户oatam2
</script>
